package one.stand.fallback;

import one.stand.feign.WechatFegin;
import one.stand.model.ResultModel;
import one.stand.request.ComponentProgramRequest;
import one.stand.request.ComponentVerifyTicketRequest;
import one.stand.request.wx.ShareDynamicRequest;
import one.stand.request.wx.UserTimerModel;
import one.stand.request.wx.WxAuthRequest;
import one.stand.request.wx.WxMsgRequest;
import one.stand.response.wx.AuthSnsapiUserinfoResponse;
import org.springframework.stereotype.Component;

/**
 * @author Administrator
 */
@Component
public class WechatFallBack implements WechatFegin {
    @Override
    public String wxcallback(ComponentVerifyTicketRequest request) {
        return "fail";
    }

    @Override
    public String program(ComponentProgramRequest request) {
        return "fail";
    }

    @Override
    public ResultModel subscribeTemplates(String companyKey, String accountType) {
        return ResultModel.fail("fail");
    }

    @Override
    public AuthSnsapiUserinfoResponse wechatCallback(String code, String state) {
        return new AuthSnsapiUserinfoResponse();
    }

    @Override
    public AuthSnsapiUserinfoResponse wxAuth(String code, String state) {
        return new AuthSnsapiUserinfoResponse();
    }

    @Override
    public String authGet(WxAuthRequest request) {
        return "1";
    }

    @Override
    public String post(WxMsgRequest request) {
        return "fail";
    }

    @Override
    public ResultModel getWxJsapiSignature(WxMsgRequest request) {
        return ResultModel.fail("fail");
    }

    @Override
    public ResultModel refreshSubscribeTemplates(WxMsgRequest request) {
        return ResultModel.fail("fail");
    }

    @Override
    public String updateShareNum(ShareDynamicRequest request) {
        return "fail";
    }

    @Override
    public String userOpenDynamic(UserTimerModel request) {
        return "fail";
    }
}
